<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><fmt:message key="flightAdjustInfoList.title"/></title> 
<script src="<c:url value='/scripts/common.js'/>"></script> 

<style type="text/css">
<!--
body {
	margin-left: 0px; 
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />

<script src="<c:url value="/scripts/date.js"/>" language="javascript"></script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="flightAdjustInfo.html?method=flow&type=3">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">不正常航班已完成任务</td>
  </tr>
  
 <tr>
    <td height="40" class="home-search-space">
	 <table>
	   <tr height="30" class="home-search-space">
		  <td align=right>航班号：</td><td><html:text property="flightNum" styleId="flightNum"  styleClass="home-table-inputbox" size="10"/></td>
      	  <td align=right>日期：</td><td><html:text property="flightDate" styleId="flightDate" styleClass="home-table-inputbox"  size="10"/>
      	   <img src="images/date.gif" width="16" height="15" onclick="fPopCalendar(flightDate,flightDate);return false"/>
      	  </td>
		  <%--td align=right>始发站：</td>
      	  <td>
			 <html:select name="flightAdjustInfoForm" property="departureAirport" size="1" styleId="vipTypeId" style="width:80px" >
			   <html:option  value="">&nbsp;</html:option> 
			   <html:options collection="cityInfo"  property="code" labelProperty="name"/> 
			 </html:select></td>
     	   <td align=right>终点站：</td--%>
           <%--td>
			  <html:select name="flightAdjustInfoForm" property="arrivalAirport" size="1" styleId="vipTypeId" style="width:80px" >
			  	 <html:option  value="">&nbsp;</html:option> 
			  	 <html:options collection="cityInfo" property="code" labelProperty="name"/> 
			  </html:select></td--%>
           <td align=right>发布时间：</td><td><html:text property="publishTime" styleId="publishTime" styleClass="home-table-inputbox"  size="10"/>
      	   <img src="images/date.gif" width="16" height="15" onclick="fPopCalendar(publishTime,publishTime);return false"/></td>
      	   <td align=right><input type="submit" class="home-inputBtn" name="Submit232" value="查询" ></td>
		</tr>
	</table>
  </tr>

   <tr> 
    <td valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content02"><sasis:page items="${flightAdjustInfoList}"/></td>
              </tr>
         <tr> 
                <td align="center" valign="top" class="home-edittable-space">	
		<table width="100%" border="0" cellpadding="2" cellspacing="0" class="list_bordercolor">
                    <tr> 
                      <td  width="9%" class="home-list-title">&nbsp;航班号</td>
                      <td  width="9%" class="home-list-title">&nbsp;日期</td>
                      <td  width="14%" class="home-list-title">&nbsp;调前预飞日期/时间</td>
                      <td  width="14%" class="home-list-title">&nbsp;调后预飞日期/时间</td> 
                    
                    
					  <td  width="10%" class="home-list-title">&nbsp;任务名称</td>
                      <td  width="10%" class="home-list-title">&nbsp;处理人</td>
                      <%--td  width="10%" class="home-list-title">&nbsp;状态</td--%>
                      <td  width="10%" class="home-list-title">&nbsp;运行图片</td>
                      <td  width="10%" class="home-list-title">&nbsp;创建时间</td>
                    </tr>
                    <c:forEach var="results" items="${flightAdjustInfoList}" varStatus="status">
                    <tr>
                     
                      <td class="home-list-content">&nbsp;<c:out value="${results.flightNum}"/></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.flightDate}"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.oldTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.currentTime}" pattern="yyyy-MM-dd HH:mm"/></td>


                       <td class="home-list-content">&nbsp;
                      &nbsp;<%--a href="./workItemInfo.html?method=list&workitemid=<c:out value="${results.workItemId}"/>&mode=abnormal&flightAdjustInfoId=<c:out value="${results.id}"/>&type=3&state=<c:out value="${results.flowState}"/>" --%>
                      	<c:out value="${results.appName}"/>
                      <%--/a--%>
                      </td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.participant}"/></td>
                      <%--td class="home-list-content">&nbsp;<c:out value="${results.flowState}"/></td--%>
                      <td class="home-list-content">&nbsp;<a href='./ProcessPicture?procInstId=<c:out value="${results.procInstId}"/>&isProcessClosed=true'>查看</a></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.startTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                      
                    </tr>
		</c:forEach> 
                  </table>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="12"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>

<script>
 
//written by kellen 07-04-19
function doDelete(chkName){  
		var selected = new Array(); 
		var val = "";	  
		   for (var i=0;i < document.forms[0].elements.length; i++){
				var e = document.forms[0].elements[i];  
				if (e.name==chkName){
					var chk = document.forms[0].elements[i];
					if(chk.checked){
						var bb = e.value; 
					    	selected.push(bb);
					    	break;
					} 
				}	 
			}	 
 		if(0!=selected.length){
 			if(confirm("<fmt:message key="common.confirm.message"/>")){  
				document.forms[0].method="post";
				document.forms[0].action="./flightAdjustInfo.html?method=delete";
				document.forms[0].submit();
			}else return;	  			
		}else{
			alert("<fmt:message key="common.delete.message"/>");
		}	 
	}
</script>
</html> 